package com.zjyd.douyangcommoncore.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.zjyd.douyangcommoncore.annotation.DouYangAutoTable;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.ColumnType;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;

/**
 * 抖阳的新闻
 */
@Data
@Table(value = "dy_news", comment = "新闻表")
@DouYangAutoTable(tableName = "dy_news", generateService = true)
public class NewsPo {

    @ColumnComment("id")
    @ColumnId(mode = IdType.AUTO, comment = "id主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private Integer id;

    @ColumnComment("标题")
    @ColumnType(length = 100)
    private String title;

    @ColumnComment("内容")
    @ColumnType(length = 1000)
    private String content;

    @ColumnComment("作者")
    @ColumnType(length = 100)
    private String author;

}
